chore(deps): override dompurify to 3.4.14 (GHSA-c2j3-45gr-mqc4) - #2638
Open
1688mengdie wants to merge 1 commit into
Open
chore(deps): override dompurify to 3.4.14 (GHSA-c2j3-45gr-mqc4)#26381688mengdie wants to merge 1 commit into
1688mengdie wants to merge 1 commit into
Conversation
pnpm-lock.yaml pins dompurify 3.3.1, which is affected by the DOM clobbering XSS advisory GHSA-c2j3-45gr-mqc4 (fixed in 3.4.8) and two low severity advisories GHSA-vxr8-fq34-vvx9 and GHSA-gvmj-g25r-r7wr. Add a workspace-level pnpm override pinning dompurify to 3.4.14 and let pnpm regenerate the lockfile, so every importer resolves the patched release. Test: pnpm install --frozen-lockfile (Already up to date, exit 0); pnpm --dir src/web-ui run type-check (exit 0); pnpm --dir src/web-ui run lint (exit 0); vitest Markdown suite (14 passed); pnpm run frontend:build-all (exit 0). AI: AI-assisted, locally tested (frozen-lockfile resolution + web-ui checks + full frontend build).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm-lock.yaml pins dompurify 3.3.1, which is affected by the DOM
clobbering XSS advisory GHSA-c2j3-45gr-mqc4 (fixed in 3.4.8) and two low
severity advisories GHSA-vxr8-fq34-vvx9 and GHSA-gvmj-g25r-r7wr. Every
importer in the workspace resolves the vulnerable release through the
lockfile.
This PR adds a workspace-level pnpm override pinning dompurify to
3.4.14 and lets pnpm regenerate the lockfile, so every importer resolves
the patched release. The regenerated lock also carries pnpm 10.15.0
serialization metadata (optional platform annotations), which introduces
no version changes.
Fixes #2631
Type and Areas
Type: security fix
Areas: Dependencies (Web UI)
Verification
pnpm install --frozen-lockfile— Already up to date, exit 0.pnpm --dir src/web-ui run type-check— exit 0.pnpm --dir src/web-ui run lint— exit 0.pnpm run frontend:build-all— exit 0.Reviewer Notes
pnpm-workspace.yaml(one line); thelockfile diff is the
pnpm installregeneration product and wasaudited hunk by hunk (dompurify semantic hunks + pnpm regeneration
metadata; zero unintended version changes).
Checklist
This is an AI-assisted change.